﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace orz.mouxianyu.Models
{
    /// <summary>
    /// 登录传入参数模型
    /// </summary>
    public class LoginDTO
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string passWord { get; set; }
    }

    /// <summary>
    /// 登录返回模型
    /// </summary>
    public class reLoginDTO
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public string UID { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 用户身份（user/admin）
        /// </summary>
        public string role { get; set; }
        /// <summary>
        /// 返回提示
        /// </summary>
        public string remsg { get; set; }
        /// <summary>
        /// token
        /// </summary>
        public tokenDTO token { get; set; }
    }

    /// <summary>
    /// token
    /// </summary>
    public class tokenDTO
    {
        /// <summary>
        /// token
        /// </summary>
        public string access_token { get; set; }
        /// <summary>
        /// token类型
        /// </summary>
        public string token_type { get; set; }
    }
}
